home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7945 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  44 lines

  1. Path: news.ichange.com!newsmaster
  2. From: Jesse Liberty <jl@staff.ichange.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Please please help a newbie!
  5. Date: Thu, 15 Feb 1996 07:57:34 -0500
  6. Organization: AT&T
  7. Message-ID: <31232DBE.5A69@staff.ichange.com>
  8. References: <4ftoe8$5a2@pacifica.access.ch>
  9. NNTP-Posting-Host: 140.244.99.60
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (Win95; I)
  14. CC: jl@staff.ichange.com
  15.  
  16. Thomas Beck wrote:
  17. > I extracted the following two problems:
  18. > ----------- example 1: -------------
  19. > int i;
  20. > int & a=i;
  21. > main() {
  22. > }
  23. > --------------------------------------------
  24. > If your example is right, the problem is that you have the first two lines floating out in space. Try this:
  25.  
  26.  int i;
  27.  int & a=i;
  28.  
  29.  main() 
  30.  {
  31.  int i;
  32.  int & a=i;
  33.  }
  34.  
  35. That will compile (thought it won't do much).  You need an introductory book which assumes no prior C experience. Pardon me 
  36. if I recommend my book "Teach Yourself C++ In 21 Days"
  37.  
  38.  
  39. -- 
  40. Jesse Liberty    jl@staff.ichange.com
  41. AT&T             CIS: 72241,72
  42.